﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

/// <summary>
/// 技能定义信息
/// </summary>
public class SkillDefineInfo
{
    public string name="" ;
    public string explain = "";

    /// <summary>
    /// 能否在运行时停止
    /// </summary>
    public bool canStopInRunningState = false;
    /// <summary>
    /// 技能CD
    /// </summary>
    public float CD_Define = 1;

    public TargetSelectDefineInfo targetSelectDefine =new TargetSelectDefineInfo();

    public SkillType skillType = SkillType.Remote;

    public List<SkillAnimationInfo> animationInfos = new List<SkillAnimationInfo>();

    public List<SkillFlyObjectInfo> flyObjectInfos = new List<SkillFlyObjectInfo>();
}
/// <summary>
/// 技能类型
/// </summary>
public enum SkillType
{
    /// <summary>
    /// 近战
    /// </summary>
    Combat,
    /// <summary>
    /// 远程
    /// </summary>
    Remote,
}

/// <summary>
/// 技能动画
/// </summary>
public class SkillAnimationInfo
{
    public float delay = 0;
    public string animationName = "";
}
/// <summary>
/// 飞行物定义
/// </summary>
public class SkillFlyObjectInfo
{
    public float delay = 0;
    /// <summary>
    /// 挂在人物身上的GameObject，作为产生点
    /// </summary>
    public string createPointName = "";
    /// <summary>
    /// 生成时产生的特效预制名
    /// </summary>
    public string createEffectPrefabName = "";
    /// <summary>
    /// 产生飞行物体预制
    /// </summary>
    public string flyObjectPrefabName = "";
    /// <summary>
    /// 初始速度
    /// </summary>
    public float originalSpeed = 1f;

    public float autoDestroyTime = 40;


}

public class CombatSetInfo
{
    public float delay = 0;
    /// <summary>
    /// 挂在人物身上的GameObject，作为伤害区域产生点
    /// </summary>
    public string createPointName = "";


}
public enum CombatHurtType
{

}